import query from '@dfeidao/atom-nodejs/db/query';
import { IncomingHttpHeaders } from 'http';
import { productid, systemid } from '../../atom/config';

interface Message {
	meeting_no: string;
	conference_reso_no: string;
}



export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	const p = query(action_id, session_id, systemid);
	// 会议纪要附件-附件名称
	p.prepare('conclusion_annex', ['meeting_no', 'meeting_minutes_annex', 'annex_name'], { productid, meeting_no: message.meeting_no, conference_reso_no: message.conference_reso_no }, 200, 1, [], []);
	const [d4] = await p.exec();
	return d4;
}
